import { AxiosResponse } from 'axios'
import { api } from '../boot/axios'
import { DetailFormType, Parts } from './type'

function url(s: string) {
    return ['/api/partversions', s.replace('/', ''), ''].join('/')
  }

  export function partVersionList(part_id:number){
    return api({
        url: `/api/partversions/?parts=${part_id}`,
        method: 'get'
      })
  }